<template>
	<view>
		<view class="" v-show="isLoaded">
			<!-- 头部轮播 -->
			<view class="carousel-section">
				<!-- 标题栏和状态栏占位符 -->
				<view class="navbar">
					<!-- <image :src="userInfo.headimg" alt="" @tap="checkLogin"></image> -->
					<view class="navbar_img">
						<robby-image-upload v-if="cate == 2" :src="userInfo.logo" :width="width" :height="height"
							:lineheight="lineheight" :borderRadius="borderRadius"></robby-image-upload>
						<robby-image-upload v-else :src="userInfo.headimg" :width="width" :height="height"
							:lineheight="lineheight" :borderRadius="borderRadius"></robby-image-upload>
					</view>
					<view class="navbar_text" v-if="hasLogin">
						<text class="navbar_text-name">{{userInfo.name}}</text>
						<view class="" v-if="cate == 1">
							<!-- <view class="navbar_text-level" v-if="userInfo.status === 4">
								<image class="navbar_text-level-img" src="@/static/images/yirenzheng.png"></image>
							</view> -->
							<view class="navbar_text-level">
								<image class="navbar_text-level-img" src="@/static/images/putonghuiyuan.png"></image>
								<!-- <text class="navbar_text-level-text">完成实名认证，信息优先推荐</text> -->
							</view>
						</view>

						<view class="" v-else>
							<!-- <view class="navbar_text-level" v-if="userInfo.status === 3">
								<image class="navbar_text-level-img" src="@/static/images/yirenzheng.png"></image>
							</view> -->
							<view class="navbar_text-level">
								<image class="navbar_text-level-img" src="@/static/images/putonghuiyuan.png"></image>
								<!-- <text class="navbar_text-level-text">完成实名认证，信息优先推荐</text> -->
							</view>
						</view>

					</view>
					<view class="navbar_text" style="line-height: 96rpx;font-size: 32rpx;" v-else @tap="checkLogin">
						<text class="">登录/注册</text>
					</view>

				</view>
				<view class="navbar_url">
					<view class="navbar_url_first" @tap="collect">
						<image class="navbar_url_first_img" src="@/static/images/wdeshouchang.png"></image>
						<text class="navbar_url_first_text">我的收藏</text>
					</view>

					<view class="navbar_url_second" @tap="goBroswer">
						<image class="navbar_url_second_img" src="@/static/images/wdeliulan.png"></image>
						<text class="navbar_url_second_text">我的浏览</text>
					</view>

					<!-- #ifndef MP-WEIXIN -->
					<view class="navbar_url_third" @tap="share">
						<image class="navbar_url_third_img" src="@/static/images/fenxianghaoyou.png"></image>
						<text class="navbar_url_third_text">分享好友</text>
					</view>
					<!-- #endif -->

					<!-- <view class="navbar_url_third" @tap="">
						<image class="navbar_url_third_img" src="@/static/images/wdejifens.png"></image>
						<text class="navbar_url_third_text">我的积分</text>
					</view>
					<view class="navbar_url_four" @tap="">
						<image class="navbar_url_second_img" src="@/static/images/huiyuanzhongxin.png"></image>
						<text class="navbar_url_second_text">会员中心</text>
					</view> -->
				</view>
			</view>
			<!-- 快捷方式 -->
			<view class="cate-section">
				<view class="cate-section-header">
					<view class="cate-section-header-left">
						<text class="cate-section-header-left-text">我的订单</text>
					</view>
					<view class="cate-section-header-right" @tap="shopOrders(0,'全部')">
						<text class="cate-section-header-right-text">查看全部</text>
						<image class="cate-section-header-right-img" src="@/static/images/chakan-you.png"></image>
					</view>
				</view>
				<view class="cate-section-content">
					<view class="cate-item" @tap="shopOrders(1,'待付款')">
						<view class="today-num" v-if="userInfo.num0 > 0">{{userInfo.num0}}</view>
						<image class="cate-item-img" src="@/static/images/daifukuan.png"></image>
						<text class="cate-item-text">待付款</text>
					</view>

					<view class="cate-item" @tap="shopOrders(2,'待发货')">
						<view class="today-num" v-if="userInfo.num1 > 0">{{userInfo.num1}}</view>
						<image class="cate-item-img" src="@/static/images/daifahuo.png"></image>
						<text class="cate-item-text">待发货</text>
					</view>
					<view class="cate-item" @tap="shopOrders(3,'待收货')">
						<view class="today-num" v-if="userInfo.num10 > 0">{{userInfo.num10}}</view>
						<image class="cate-item-img" src="@/static/images/daishouhuo.png"></image>
						<text class="cate-item-text">待收货</text>
					</view>
					<view class="cate-item" @tap="shopOrders(4,'已完成')">
						<image class="cate-item-img" src="@/static/images/tuihuan.png"></image>
						<text class="cate-item-text">已完成</text>
					</view>
				</view>
			</view>

			<view class="cate-section1">
				<view class="cate-section-header">
					<view class="cate-section-header-left">
						<text class="cate-section-header-left-text">我的服务</text>
					</view>
				</view>
				<view class="cate-section-content">
					<navigator class="cate-item" url="/pages6/pages/address/address">
						<image class="cate-item-img1" src="@/static/images/shouhuoidhzi.png"></image>
						<text class="cate-item-text">收货地址</text>
					</navigator>

					<view class="cate-item" @tap="kefu">
						<image class="cate-item-img1" src="@/static/images/xiaoshoukefu.png"></image>
						<text class="cate-item-text">销售客服</text>
					</view>
					<!-- <view class="cate-item" @tap="share">
						<image class="cate-item-img1" src="@/static/images/fenxianghaoyou.png"></image>
						<text class="cate-item-text">分享好友</text>
					</view> -->
				</view>
			</view>

			<view class="cate-section2">
				<view class="cate-section-header">
					<view class="cate-section-header-left">
						<text class="cate-section-header-left-text">关于我们</text>
					</view>
				</view>
				<view class="cate-section-content">
					<view class="cate-item" @tap="kefu">
						<image class="cate-item-img2" src="@/static/images/shangwuhezuo.png"></image>
						<text class="cate-item-text">商务合作</text>
					</view>

					<view class="cate-item" @tap="aboutMe">
						<image class="cate-item-img2" src="@/static/images/liaojiewomen.png"></image>
						<text class="cate-item-text">了解我们</text>
					</view>
				</view>
			</view>

		</view>

		<view class="mark1" v-show="isShowKefu">
			<view class="banks-list">
				<image src="@/static/images/guanbi.png"
					style="width:23rpx;height:23rpx;position: absolute;right:50rpx;top:30rpx;" @tap="cancle(1)">
				</image>
				<view class="banks-list1">
					<view class="banks-list1-left">
						<image class="image1" src="/static/images/rengongdianhua.png" style="width:63rpx;height:64rpx;">
						</image>
					</view>
					<view class="banks-list1-center">
						<text class="text1">商务合作咨询</text>
						<text class="text2">周一至周五</text>
					</view>
					<view class="banks-list1-right" @tap="callPhone">
						<image class="image2" src="/static/images/zixun.png" style="width:123rpx;height:45rpx;">
						</image>
					</view>
				</view>

			</view>
		</view>

		<!-- 分享 -->
		<view class="mark2" v-show="isShowShare">
			<view class="banks-list">
				<view class="banks-list-title">
					<text>分享</text>
					<image src="@/static/images/guanbi.png"
						style="width:23rpx;height:23rpx;position: absolute;right:50rpx;" @tap="cancle(2)"></image>
				</view>
				<view class="banks-list-content">
					<view class="banks-list1">
						<view class="banks-list1-item" @tap="haoyou">
							<image class="images" src="/static/images/weixin.png"></image>
							<text class="texts">微信好友</text>
						</view>
						<view class="banks-list1-item" @tap="pengyouquan">
							<image class="images" src="/static/images/pengyouquan.png"></image>
							<text class="texts">朋友圈</text>
						</view>
						<view class="banks-list1-item" @tap="copyUrl">
							<image class="images" src="/static/images/fuzhilianjie.png"></image>
							<text class="texts">复制链接</text>
						</view>
					</view>
					<view class="banks-list2">
						<view class="banks-list2-cancle" @tap="cancle(2)">取消</view>
					</view>
				</view>
			</view>
		</view>

		<uni-popup ref="alertDialog1" type="dialog">
			<uni-popup-dialog :type="msgType" title="下载确认" content="" @confirm="dialogConfirm1">
				<view class="remember">
					浏览器暂不支持该功能，请下载app
				</view>
			</uni-popup-dialog>
		</uni-popup>

		<uni-popup ref="alertDialog2" type="dialog">
			<uni-popup-dialog :type="msgType" title="分享确认" content="">
				<view style="font-size: 30rpx;">
					微信内置浏览器暂不支持该功能，若要分享，请点击右上角 <image src="/static/images/tupiansandian.png" alt=""
						style="width:68rpx;height:34rpx;margin:0 10rpx;">选择分享
				</view>
			</uni-popup-dialog>
		</uni-popup>

		<BottomTabbar :selected="3"></BottomTabbar>
	</view>
</template>

<script>
	import BottomTabbar from '@/pages6/components/bottom-tabbar/shop-bottom-tabbar.vue';
	import robbyImageUpload from '@/components/robby-image-upload/robby-image-upload.vue';
	import {
		mapState
	} from 'vuex';
	export default {

		data() {
			return {
				isLoaded: false,
				empty: true,
				cate: 1,
				height: '116rpx',
				lineheight: '116rpx',
				width: '116rpx',
				borderRadius: '',

				userInfo: {
					name: '佚名',
					headimg: '/static/images/touxiang.png',
					logo: '/static/images/touxiang.png',
					status: 0,
					broswer_num: 0,
					wechatid: 0,
					num0: 0,
					num1: 0,
					num10: 0
				},

				IDcard: {
					ID1: '',
					ID2: '',
				},

				license: '',
				isShowKefu: false,
				isShowShare: false,
				msgType: 'info',

				webUrl: 'https://test.hnliandesy.com/h5/#/',
			};
		},

		// #ifdef MP-WEIXIN
		onShareAppMessage(res) {
			return {
				title: '廉德劳务',
				path: '/pages6/pages/product/my'
			}
		},
		// #endif

		computed: {
			...mapState(['hasLogin']),
		},
		components: {
			robbyImageUpload,
			BottomTabbar
		},
		//下拉刷新
		onPullDownRefresh() {
			//判断是否登录
			let result = this.$api.isLogin();
			if (result === false) {
				return false;
			}
			this.loadData();
			// 停止下拉刷新
			setTimeout(function() {
				uni.stopPullDownRefresh()
			}, 500)

		},
		onLoad() {
			uni.showLoading({
				title: '加载中...'
			});

			if (this.hasLogin) {
				this.loadData();
			}

			if (this.cate == 2) {
				uni.setStorageSync('uploadType', 'logo')
			} else {
				this.borderRadius = "50%"
				uni.setStorageSync('uploadType', 'headimg')
			}

			setTimeout(() => {
				this.isLoaded = true;
				uni.hideLoading();
			}, 600)

			if (this.cate == 2) {
				uni.$on('changeLogo', (option) => {
					let data = JSON.parse(option)
					this.userInfo.logo = data.data;
					this.logo(data.data)
				})
			} else {
				uni.$on('changeHeadimg', (option) => {
					let data = JSON.parse(option)
					this.userInfo.headimg = data.data;
					this.headimg(data.data)
				})
			}

			uni.$on('cancleShare', () => {
				this.isShowShare = false;
			})
		},
		methods: {
			async loadData() {
				let token = uni.getStorageSync('token');
				let cate = uni.getStorageSync('cate');
				this.cate = cate;

				if (!token) {
					this.$api.msg('token缺失！');
				}
				let url = '/getUserInfo';
				if (cate == 2) {
					url = '/getComInfo';
				}
				let res = await this.$myRequest({
					url: url,
					data: {
						cate: cate,
						token: token
					},
					methods: 'post'
				})

				let info = res.data.data;
				if (cate == 1) {
					if (info.realname) {
						this.userInfo.name = info.realname;
					}
					if (info.avatar) {
						this.userInfo.headimg = info.avatar;
					} else {
						this.userInfo.headimg = '/static/images/touxiang.png';
					}
				} else if (cate == 2) {
					if (info.company_name) {
						this.userInfo.name = info.company_name;
					}
					if (info.logo) {
						this.userInfo.logo = info.logo;
					} else {
						this.userInfo.logo = '/static/images/company_logo.png';
					}
				}

				if (info.num0 != this.userInfo.num0) {
					this.userInfo.num0 = info.num0
				}
				if (info.num1 != this.userInfo.num1) {
					this.userInfo.num1 = info.num1
				}
				if (info.num10 != this.userInfo.num2) {
					this.userInfo.num10 = info.num10
				}
			},

			async shopOrders(state, title) {
				if (!this.hasLogin) {
					this.$api.msg('请先登录！', 'none');
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/login/login',
						})
					}, 1000)
					return false;
				}

				let url = '/pages6/pages/order/order?state=' + state;
				uni.navigateTo({
					url: url
				})
			},

			//浏览记录
			async goBroswer() {
				if (!this.hasLogin) {
					this.$api.msg('请先登录！', 'none');
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/login/login',
						})
					}, 1000)
					return false;
				}

				let url = '/pages6/pages/broswer/browser-shop'
				uni.navigateTo({
					url: url
				})
			},

			//我的收藏
			async collect() {
				if (!this.hasLogin) {
					this.$api.msg('请先登录！', 'none');
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/login/login',
						})
					}, 1000)
					return false;
				}

				let url = '/pages6/pages/collect/shop-collect'

				uni.navigateTo({
					url: url
				})
			},

			//我的余额
			async gomoney() {
				if (!this.hasLogin) {
					this.$api.msg('请先登录！', 'none');
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/login/login',
						})
					}, 1000)
					return false;
				}

				uni.navigateTo({
					url: '/pages2/pages/my-money/my-money'
				})
			},

			async headimg(headimg) {
				// console.log(headimg)
				let token = uni.getStorageSync('token');
				let res = await this.$myRequest({
					url: '/headimg',
					data: {
						cate: 1,
						token: token,
						headimg: headimg
					},
					methods: 'post'
				})
			},

			async logo(logo) {
				let token = uni.getStorageSync('token');
				let res = await this.$myRequest({
					url: '/logo',
					data: {
						cate: 2,
						token: token,
						logo: logo
					},
					methods: 'post'
				})
			},

			//我的客服
			async kefu() {
				this.isShowKefu = true;
				this.isShowShare = false;
			},

			async callPhone() {
				uni.makePhoneCall({
					phoneNumber: '0371-63213817'
				});
			},

			//取消
			async cancle(type) {
				switch (type) {
					case 1:
						this.isShowKefu = false;
						break;
					case 2:
						this.isShowShare = false;
						break;
				}
			},

			async share() {
				if (!this.hasLogin) {
					this.$api.msg('请先登录！', 'none');
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/login/login',
						})
					}, 1000)
					return false;
				}

				this.isShowKefu = false;
				// #ifdef APP-PLUS
				this.isShowShare = true;
				// #endif

				// #ifdef H5
				if (this.$wechat && this.$wechat.isWechat()) {
					let locationHref = {
						url: window.location.href
					};

					let res = await this.$myRequest({
						url: '/getWxInfo',
						data: locationHref
					})

					if (res.data.status) {
						var jweixin = this.$wx

						jweixin.config({
							debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
							appId: res.data.data.appId, // 必填，公众号的唯一标识
							timestamp: res.data.data.timestamp, // 必填，生成签名的时间戳
							nonceStr: res.data.data.nonceStr, // 必填，生成签名的随机串
							signature: res.data.data.signature, // 必填，签名，见微信开发文档附录1
							jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData']
						});
						jweixin.ready(() => {
							// config信息验证后会执行ready方法，所有接口调用都必须在config接口获得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口，则可以直接调用，不需要放在ready函数中。
							//分享至微信好友
							jweixin.updateAppMessageShareData({
								title: "好友分享", // 分享标题
								desc: "好友分享", // 分享描述
								link: this.webUrl +
									"pages6/pages/my/my", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
								imgUrl: "https://liande.oss-cn-beijing.aliyuncs.com/pictures/jinjizhaoren.png", // 分享图标
								type: '', // 分享类型,music、video或link，不填默认为link
								dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
								success: function() {
									// 用户点击了分享后执行的回调函数
									// console.log('分享给好友');

								}
							});
							//分享朋友圈
							jweixin.updateTimelineShareData({
								title: "好友分享", // 分享标题
								link: this.webUrl + "pages6/pages/my/my", // 分享链接
								imgUrl: "https://liande.oss-cn-beijing.aliyuncs.com/pictures/jinjizhaoren.png", // 分享图标
								success: function() {
									// 用户确认分享后执行的回调函数
									// console.log('分享到朋友圈');
								},

							});

						});
						jweixin.error(function(res) {
							// config信息验证失败会执行error函数，如签名过期导致验证失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
							console.log('验证失败');
							console.log(res);
						});

						this.$refs.alertDialog2.open()
					}
				} else {
					this.$refs.alertDialog1.open()
				}
				// #endif
			},

			//浏览器中下载app
			async dialogConfirm1() {
				window.location.href = "https://test.hnliandesy.com/loading.html"
			},

			async haoyou() {
				uni.share({
					provider: "weixin",
					scene: "WXSceneSession",
					type: 0,
					href: this.webUrl + "pages6/pages/my/my",
					title: "好友分享",
					summary: "好友分享",
					imageUrl: "https://liande.oss-cn-beijing.aliyuncs.com/pictures/jinjizhaoren.png",
					success: (res) => {
						this.$api.msg('分享成功', 'success');
					},
					fail: (err) => {
						this.$api.msg(JSON.stringify(err));
					}
				});
			},

			async pengyouquan() {
				uni.share({
					provider: "weixin",
					scene: "WXSenceTimeline",
					type: 0,
					href: this.webUrl + "pages6/pages/my/my",
					title: "好友分享",
					summary: "好友分享",
					imageUrl: "https://liande.oss-cn-beijing.aliyuncs.com/pictures/jinjizhaoren.png",
					success: (res) => {
						this.$api.msg('分享成功', 'success');
					},
					fail: (err) => {
						this.$api.msg(JSON.stringify(err));
					}
				});
			},

			async copyUrl() {
				uni.setClipboardData({
					//准备复制的数据
					data: this.webUrl + "pages6/pages/my/my",
					success: (res) => {
						this.$api.msg('复制成功！')
					}
				})
			},

			aboutMe() {
				uni.navigateTo({
					url: '/pages6/pages/docs/about',
				})
			},
			
			async checkLogin() {
				if (!this.hasLogin) {
					this.$api.msg('请先登录！', 'none');
					setTimeout(() => {
						uni.navigateTo({
							url: '/pages/login/login',
						})
					}, 1000)
					return false;
				} else {
					return true;
				}
			},
		}
	}
</script>

<style>
	page {
		// #ifdef APP-PLUS
		background-image: url('@/pages6/static/images/back2.png');
		// #endif
		// #ifdef H5
		background-image: url('@/pages6/static/images/back1.png');
		// #endif
		// #ifdef MP-WEIXIN
		background-image: url('@/pages6/static/images/back1.png');
		// #endif
		background-color: #f7f7f7;
		background-size: 100%;
		background-repeat: no-repeat;
		font-size: $font-base;

		min-height: 1450upx;
	}
</style>

<style lang="scss" scoped>
	/* 头部 */
	.carousel-section {
		background-size: cover;
		// #ifdef APP-PLUS
		padding-top: 200rpx;
		height: 316rpx;
		// #endif

		// #ifdef MP-WEIXIN
		padding-top: 174rpx;
		height: 290rpx;
		// #endif

		// #ifdef H5
		padding-top: 140rpx;
		height: 256rpx;
		// #endif
		position: relative;

		.navbar {
			display: flex;
			align-items: center;

			.navbar_img {
				width: 116rpx;
				height: 116rpx;
				margin-right: 28rpx;
				margin-left: 42rpx;
			}

			.navbar_text {
				height: 96rpx;
				display: flex;
				flex-direction: column;
				align-items: left;
				color: #fff;

				.navbar_text-name {
					height: 45rpx;
					line-height: 45rpx;
					font-size: $font-lg;
					/* font-weight: bold; */
					margin-bottom: 14rpx;
				}

				.navbar_text-level {
					height: 38rpx;
					line-height: 38rpx;
					display: flex;
					justify-content: left;

					.navbar_text-level-img {
						height: 40rpx;
						width: 136rpx;
						display: inline-block;
						margin-right: 10rpx;
					}

					.navbar_text-level-text {
						font-size: 24rpx;
					}
				}
			}

		}

		.navbar_url {
			position: absolute;
			// #ifdef APP-PLUS
			top: 366rpx;
			// #endif

			// #ifdef MP-WEIXIN
			top: 348rpx;
			// #endif

			// #ifdef H5
			top: 314rpx;
			// #endif

			height: 164upx;
			left: 20upx;
			right: 20upx;
			background-color: #fff;
			border-radius: 15rpx;
			padding: 34rpx 0;

			display: flex;
			justify-content: space-between;

			.navbar_url_first,
			.navbar_url_second,
			.navbar_url_third,
			.navbar_url_four {

				width: 33.3%;
				// #ifdef MP-WEIXIN
				width: 50%;
				// #endif
				display: flex;
				flex-direction: column;
				align-items: center;
				font-size: $font-base;
				position: relative;
			}

			.navbar_url_first_img,
			.navbar_url_second_img,
			.navbar_url_third_img,
			.navbar_url_four_img {
				width: 56rpx;
				height: 54rpx;
				// margin-bottom: 8rpx;
				position: absolute;
				top: 0;
			}

			.navbar_url_first_text,
			.navbar_url_second_text,
			.navbar_url_third_text,
			.navbar_url_four_text {
				position: absolute;
				bottom: 0rpx;
			}

		}
	}

	.cate-section {
		// #ifdef APP-PLUS
		top: 546rpx;
		// #endif
		// #ifdef MP-WEIXIN
		top: 528rpx;
		// #endif
		// #ifdef H5
		top: 494rpx;
		// #endif
	}

	.cate-section1 {
		// #ifdef APP-PLUS
		top: 802rpx;
		// #endif
		// #ifdef MP-WEIXIN
		top: 784rpx;
		// #endif
		// #ifdef H5
		top: 750rpx;
		// #endif
	}

	.cate-section2 {
		// #ifdef APP-PLUS
		top: 1064rpx;
		// #endif
		// #ifdef MP-WEIXIN
		top: 1046rpx;
		// #endif
		// #ifdef H5
		top: 1012rpx;
		// #endif
	}

	.cate-section,
	.cate-section1,
	.cate-section2 {
		position: absolute;
		height: 240upx;
		left: 20upx;
		right: 20upx;
		background-color: #fff;
		border-radius: 15rpx;

		.cate-section-header {
			height: 82rpx;
			padding: 0 21rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1px solid #ececec;

			.cate-section-header-left {
				display: flex;
				align-items: center;
			}

			.cate-section-header-left-img {
				width: 6rpx;
				height: 27rpx;
				margin-right: 16rpx;
			}

			.cate-section-header-left-text {
				/* font-weight: bold; */
				font-size: $font-base;
			}

			.cate-section-header-right-text {
				font-size: $font-base;
				color: $font-color-dark;
				margin-right: 18rpx;
			}

			.cate-section-header-right-img {
				width: 9rpx;
				height: 18rpx;
			}
		}

		.cate-section-content {
			display: flex;
			align-items: center;
			padding: 35rpx 0;
			flex-wrap: wrap;

			.cate-item {
				width: 25%;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				position: relative;
				height: 90rpx;
				font-size: $font-base;
				color: $font-color-dark;

				.cate-item-text {
					font-size: $font-base;
					position: absolute;
					bottom: 0;
				}
			}
		}

	}

	.cate-item-img {
		width: 50upx;
		height: 46rpx;
	}

	.cate-item-img1 {
		width: 53upx;
		height: 48rpx;
	}

	.cate-item-img2 {
		width: 48rpx;
		height: 48rpx;
	}

	.cate-item-img,
	.cate-item-img1,
	.cate-item-img2 {
		position: absolute;
		top: 0;
	}

	.mark1 {
		z-index: 100;
		position: fixed;
		height: 100%;
		width: 100%;
		top: 0rpx;
		bottom: 0rpx;
		background: rgba(0, 0, 0, 0.5);
		box-shadow: 2px -3px 100px -5px #FFFFFF;

		.banks-list {
			position: fixed;
			height: 340rpx;
			bottom: 0rpx;
			background-color: #fff;
			width: 100%;

			.banks-list-title {
				height: 88rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border-bottom: 1px solid #ebebeb;
				position: relative;
			}

			.banks-list1 {
				padding-top: 80rpx;
				height: 230rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				margin: 0 66rpx;

				.banks-list1-center {
					display: flex;
					flex-direction: column;
					align-items: left;

					.text1 {
						/* font-weight: bold; */
						line-height: 50rpx;
					}

					.text2 {
						color: #959595;
						font-size: 26rpx;
					}
				}
			}

			.banks-list-button {
				padding-top: 20rpx;
				display: flex;
				justify-content: center;
			}
		}
	}

	.mark2 {
		z-index: 100;
		position: fixed;
		height: 100%;
		width: 100%;
		top: 0rpx;
		bottom: 0rpx;
		background: rgba(0, 0, 0, 0.5);
		box-shadow: 2px -3px 100px -5px #FFFFFF;
		font-size: $font-base;

		.banks-list {
			position: absolute;
			height: 496rpx;
			bottom: 0rpx;
			background-color: #fff;
			width: 100%;

			.banks-list-title {
				height: 88rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border-bottom: 1px solid #ebebeb;
				position: relative;
			}

			.banks-list-content {
				.banks-list1 {
					height: 230rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;

					margin: 0 66rpx;

					.banks-list1-item {
						width: 33.3%;
						display: flex;
						flex-direction: column;
						align-items: center;
					}
				}

				.banks-list2 {
					position: relative;
					height: 176rpx;
					border-top: 1px solid #f3f3f6;

					.banks-list2-cancle {
						position: absolute;
						margin: auto;
						top: 0;
						left: 0;
						bottom: 0;
						right: 0;

						width: 80%;
						background-color: #f2451a;
						color: #fff;
						height: 82rpx;
						border-radius: 82rpx;
						display: flex;
						align-items: center;
						justify-content: center;
					}
				}

			}

			.banks-list-button {
				padding-top: 20rpx;
				display: flex;
				justify-content: center;
			}

			.images {
				width: 102rpx;
				height: 102rpx;
			}

			.texts {
				margin-top: 20rpx;
				color: #737373
			}

		}
	}

	.today-num {
		position: absolute;
		padding: 0 4upx;
		height: 36upx;
		min-width: 36upx;
		background-color: $base-color;
		color: #fff;
		font-size: 18rpx;
		right: 20upx;
		top: -20upx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 18upx;
	}
</style>
